home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / 5 / PROTECTO / PMCOMMON.H < prev    next >
Text File  |  1991-10-07  |  1KB  |  51 lines

  1. /*
  2.  * common declarations for loading and dumping appleshare protections
  3.  * by Aaron Wohl (aw0g+@andrew.cmu.edu)
  4.  */
  5.  
  6. #ifndef EEXTERN
  7. #define EEXTERN extern
  8. #endif
  9.  
  10. #ifdef RUBBISH
  11. typedef struct {
  12.     STANDARD_PBHEADER 
  13.     int                filler3;
  14.     int                ioDenyModes;
  15.     int                filler4;
  16.     SignedByte        filler5;
  17.     SignedByte        ioACUser;
  18.     long            filler6;
  19.     long            ioACOwnerID;
  20.     long            ioACGroupID;
  21.     long            ioACAccess;
  22.     long            ioDirID;
  23. } fixed_AccessParam;
  24.  
  25. typedef union {
  26.     HIOParam        ioParam;
  27.     HFileParam        fileParam;
  28.     HVolumeParam    volumeParam;
  29.     fixed_AccessParam        accessParam;
  30.     ObjParam        objParam;
  31.     CopyParam        copyParam;
  32.     WDParam            wdParam;
  33. } fixed_HParamBlockRec, *fixed_HParmBlkPtr;
  34. #endif
  35.  
  36. #define ERR_BUF_SIZE (1024)
  37. int read_line(char *aline,FILE *afile);
  38. #define BAD_VOL_NUM (0)
  39. long get_vol_id(char *in_name);
  40. struct cache_entry_R {
  41.     char text[34];
  42.     long num;
  43. };
  44. typedef struct cache_entry_R cache_entry,*cache_entry_pt;
  45.  
  46. EEXTERN cache_entry_pt group_cache;
  47. EEXTERN cache_entry_pt user_cache;
  48.  
  49. void allocate_cache_entries(void);
  50. #define CACHE_SIZE (300)
  51.